//
//  BiCarModifyIndexViewController.m
//  TrunkIndustryManageSystem
//
//  Created by WT_lyy on 15/5/5.
//  Copyright (c) 2015年 李璐西. All rights reserved.
//

#import "BiCarModifyIndexViewController.h"
#import "BiModifyListViewController.h"
@interface BiCarModifyIndexViewController ()

@end

@implementation BiCarModifyIndexViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSDictionary * imageDic = [NSDictionary dictionaryWithObjectsAndKeys:@"common/icon_liebiao",@"qualifieddeliver",nil];
    
    
    NSDictionary * titleDic = [NSDictionary dictionaryWithObjectsAndKeys:@"合格证交付",@"qualifieddeliver",nil];
    
    
    
    NSMutableArray * imagearr = [NSMutableArray array];
    NSMutableArray * titlearr = [NSMutableArray array];
    NSArray * saleArr = [BiUserEntity sharedInstance].permissionDic[@"zhengchebiangeng"];
    
    for (int i =0 ; i < saleArr.count; i++) {
        NSString * borrowStr = saleArr[i];
        
        [imagearr addObject:imageDic[borrowStr]];
        
        [titlearr addObject:titleDic[borrowStr]];
    }
    
    
    [self refreshTable:titlearr imageArr:titlearr title:@"整车变更"];
    
}


#pragma -mark UitabeViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    
//    UITableViewCell * cell  = [tableView cellForRowAtIndexPath:indexPath];
//    
//    UILabel * tltlelab = (UILabel *)[cell viewWithTag:2];
//    
//  
    BiModifyListViewController *viewCtrl = [[BiModifyListViewController alloc]init];
    
    [self.navigationController pushViewController:viewCtrl animated:YES];;

}


@end
